using System.Xml.Schema;
using Mistral.Xml;

namespace DeclarativeTest.Core.Support
{
	public class SchemaRegistry
	{
		//private static List<string> _locations
		private static XmlSchemas __schemas;

		public static XmlSchemaSet Schemas
		{
			get
			{
				if( __schemas == null )
				{
					__schemas = new XmlSchemas(
						"assembly://DeclarativeTest/DeclarativeTest.Resources/declarative-test-1.0.xsd",
						"assembly://DeclarativeTest/DeclarativeTest.Resources/base-actions.xsd" );				
				}
				return __schemas.SchemaSet;
			}
		}
	
		public static void Register( XmlSchemaSet schemaSet )
		{
			Schemas.Add( schemaSet );
		}
	}
}